from flask_migrate import Migrate, MigrateCommand
from flask_script import Manager
from apps import create_app
from apps.user.models import User
from apps.goods.models import Goods
from flask_sqlalchemy import SQLAlchemy

app = create_app()
manager = Manager(app)
db = SQLAlchemy(app)
migrate = Migrate(app=app, db=db)
manager.add_command('db', MigrateCommand)

if __name__ == '__main__':
    manager.run()
